
<%@ page import="weeklyreport.Issue" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<title>问题清单</title>
	</head>
	<body>
		<a href="#list-issue" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="task">任务清单</g:link></li>
				<li><g:link class="create" action="create">新增问题</g:link></li>
			</ul>
		</div>
		<div id="list-issue" class="content scaffold-list" role="main">
			<h1>问题清单</h1>
			<g:if test="${flash.message}">
				<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
			<thead>
					<tr>
					
						<g:sortableColumn property="imNumber" title="编号" />
					
						<g:sortableColumn property="date" title="日期" />
					
						<g:sortableColumn property="status" title="状态" />
					
						<g:sortableColumn property="depart" title="部门" />
					
						<g:sortableColumn property="description" title="描述" />
					
						<g:sortableColumn property="reason" title="原因" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${issueInstanceList}" status="i" var="issueInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${issueInstance.id}">${fieldValue(bean: issueInstance, field: "imNumber")}</g:link></td>
					
						<td><g:formatDate format="yyyy/MM/dd" date="${issueInstance.date }"/></td>
					
						<td>${fieldValue(bean: issueInstance, field: "status")}</td>
					
						<td>${fieldValue(bean: issueInstance, field: "depart")}</td>
					
						<td>${fieldValue(bean: issueInstance, field: "description")}</td>
					
						<td>${fieldValue(bean: issueInstance, field: "reason")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${issueInstanceCount ?: 0}" />
			</div>
		</div>
	</body>
</html>
